package org.jeecg.modules.contract.pattern.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.business.entity.BussContractReviewDes;
import org.jeecg.modules.contract.pattern.entity.ErpGoodsPatternDetail;
import org.jeecg.modules.contract.pattern.entity.ErpGoodsPattern;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.contract.pattern.vo.ErpGoodsPatternPage;

import javax.servlet.http.HttpServletRequest;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 版样更改管理
 * @Author: jeecg-boot
 * @Date:   2024-05-27
 * @Version: V1.0
 */
public interface IErpGoodsPatternService extends IService<ErpGoodsPattern> {

	/**
	 * 添加一对多
	 *
	 * @param erpGoodsPattern
	 * @param erpGoodsPatternDetailList
	 */
	public void saveMain(ErpGoodsPattern erpGoodsPattern,List<ErpGoodsPatternDetail> erpGoodsPatternDetailList) ;
	
	/**
	 * 修改一对多
	 *
   * @param erpGoodsPattern
   * @param erpGoodsPatternDetailList
	 */
	public void updateMain(ErpGoodsPattern erpGoodsPattern,List<ErpGoodsPatternDetail> erpGoodsPatternDetailList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 关联显示包材信息
	 *
	 * @param page
	 */
	IPage<ErpGoodsPatternPage> myPage(Page<ErpGoodsPattern> page, ErpGoodsPattern erpGoodsPattern);

	public ErpGoodsPatternDetail queryDetail(String id);

	void addPattern(ErpGoodsPatternDetail erpGoodsPatternDetail, HttpServletRequest req);
}
